import request from '@/utils/request'

// 查询货品管理列表
export function listWmsGoods(query) {
  return request({
    url: '/basics/WmsGoods/list',
    method: 'get',
    params: query
  })
}

// 查询货品管理详细
export function getWmsGoods(id) {
  return request({
    url: '/basics/WmsGoods/' + id,
    method: 'get'
  })
}

//货品编码生成
export function getMaxCode() {
  return request({
    url: '/basics/WmsGoods/maxCode',
    method: 'get'
  })
}

// 新增货品管理
export function addWmsGoods(data) {
  return request({
    url: '/basics/WmsGoods',
    method: 'post',
    data: data
  })
}

// 修改货品管理
export function updateWmsGoods(data) {
  return request({
    url: '/basics/WmsGoods',
    method: 'put',
    data: data
  })
}

// 删除货品管理
export function delWmsGoods(id) {
  return request({
    url: '/basics/WmsGoods/' + id,
    method: 'delete'
  })
}